package com.dws.xchat.controller;

import java.util.Date;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class BaseController {

	private Logger log = LoggerFactory.getLogger(BaseController.class);
	
	@RequestMapping("/index")
	public String index(Map<String,Object> model){
		model.put("time", new Date());
		model.put("message", "welcome");
		log.error("ceshi");
		return "index";
	}
}
